//
// Created by liushuai on 18-8-7.
//

#ifndef EX12_ACCTABC_HPP
#define EX12_ACCTABC_HPP

#include <iostream>
#include <string>

class acctabc {
private:
    std::string fullName;
    long acctNum;
    double balance;
protected:
    const std::string &FullName()const;
    long AccNum() const;

public:
    acctabc(const std::string &s = "Nullbody",long an = -1,double bal = 0.0);
    void Deposit(double amt);
    double Balance() const;
    virtual void ViewAcct() const = 0;
    virtual void Withdraw(double amt) = 0;
    virtual ~acctabc();
};
#endif //EX12_ACCTABC_HPP
